package day_2022_4_to_7.day48;

import java.util.Scanner;

/**
 * @author haomin
 * @date 2022/04/19 12:04
 **/
public class Day2_2_WordInversion {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        String s1 = in.nextLine();
        String[] ret = s1.split(" ");
        String s2 ="";
        for (int i = ret.length -1; i >=0 ; i--) {
            if(i != 0){
                s2+=ret[i];
                s2+=" ";
            }else {
                s2+=ret[i];
            }
        }
        System.out.println(s2.toString());
    }
}